import request from '@/utils/request'

//获取企业列表
export function getCompanyTable(data) {
	return request({
		url: '/pc/system/app_enterprise/5_page_find_all',
		method: 'post',
		json:data
	})
}

//查询企业人员
export function getEnterpriseStaff(data) {
	return request({
		url: '/pc/system/app_user/5_page_find_all',
		method: 'post',
		formData:data
	})
}

//企业新增
export function enterpriseAdd(data) {
	return request({
		url: '/pc/system/app_enterprise/1_insert',
		method: 'post',
		json:data
	})
}

//企业修改
export function enterpriseUpdate(data) {
	return request({
		url: '/pc/system/app_enterprise/2_update',
		method: 'post',
		json:data
	})
}

//根据企业ID查询企业人员
export function getEnterpriseByID(data) {
	return request({
		url: '/pc/system/app_user/6_get_user_by_enterprise_id',
		method: 'post',
		formData:data
	})
}

//根据企业ID查询企业信息
export function getEnterpriseDetailByID(data) {
	return request({
		url: '/pc/system/app_enterprise/4_find_by_id',
		method: 'post',
		formData:data
	})
}

//根据人员ID查详情
export function getPersonDetailByID(data) {
	return request({
		url: '/pc/system/app_user/4_find_by_id',
		method: 'post',
		formData:data
	})
}

//根据企业ID删除企业
export function getDeleteEnterpriseByID(data) {
	return request({
		url: '/pc/system/app_enterprise/3_delete_by_id',
		method: 'post',
		formData:data
	})
}

//根据企业ID批量删除企业
export function getBatchDeleteEnterpriseByID(data) {
	return request({
		url: '/pc/system/app_enterprise/3_delete_by_ids',
		method: 'post',
		formData:data
	})
}